<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="../../common/sessionValidate.jsp" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html lang="UTF-8">
<head>
    <title>T_user信息维护</title>
    <%@ include file="../../common/meta.jsp"%>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" >
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <link rel="stylesheet" href="<%=basePath%>css/my-bootstrap.css" media="screen" id="tuserskin">
    <link rel="stylesheet" href="<%=basePath%>js/toastr/toastr.css">
    <link rel="stylesheet" href="<%=basePath%>css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="<%=basePath%>css/font-awesome.min.css">
    <script type="text/javascript" src="<%= basePath %>js/jquery.cookie.js"></script>
</head>
<style>
    hr {
        margin-top:1px;
        border-bottom: 1px solid #1BBC9B;
    }
</style>
<body>
<form class="form-horizontal form-bordered form-row-strippe" name="ffAdd" id="ffAdd" mentod="post" role="form" data-toggle="validator" enctype="multipart/form-data">
    <div class="" style="margin-right:2px;padding-right:1px;">

        <!-------------------------- 面板  start--------------------------------->
        <div class="panel panel-primary" >
            <div class="panel-heading clearfix"  id="addHeaderDiv">
            </div>
            <div class="panel-body">
                <div class="row" >
                    <h5>&nbsp;&nbsp;基本信息</h5>
                    <hr>
                    <div class="col-md-6"><!--start 换列-->
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3"><font color="red">*</font> 姓名</label>
                                <div class="col-md-9">
                                    <input id="username" name="username" type="text" class="form-control" placeholder="" />
                                    <input id="id" name="id" type="hidden" class="form-control" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">入职日期</label>
                                <div class="col-md-9">
                                    <input id="joinday" name="joinday"  onclick='SelectDate(this)' readonly='true' type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">民族</label>
                                <div class="col-md-9">
                                    <input id="minzu" name="minzu" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">血型</label>
                                <div class="col-md-9">
                                    <select class="form-control" id="xuexing" name="xuexing">
                                        <option value='A'>A</option>
                                        <option value='B'>B</option>
                                        <option value='O'>O</option>
                                        <option value='其它'>其它</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">身高</label>
                                <div class="col-md-9">
                                    <input id="shengao" name="shengao" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">体重</label>
                                <div class="col-md-9">
                                    <input id="tizhong" name="tizhong" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">健康状况</label>
                                <div class="col-md-9">
                                    <input id="health" name="health" type="text" class="form-control" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">政治面貌</label>
                                <div class="col-md-9">
                                    <input id="zhengzhimianmao" name="zhengzhimianmao" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">紧急联系人</label>
                                <div class="col-md-9">
                                    <input id="importlinkname" name="importlinkname" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">与本人关系</label>
                                <div class="col-md-9">
                                    <input id="importrel" name="importrel" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">联系地址</label>
                                <div class="col-md-9">
                                    <input id="linkaddress" name="linkaddress" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">QQ</label>
                                <div class="col-md-9">
                                    <input id="qq" name="qq" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">签字日期</label>
                                <div class="col-md-9">
                                    <input id="signdate" name="signdate"  onclick='SelectDate(this)' readonly='true' type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>

                        <!--如果输入元素是偶数个元素，在n=size/2?int时输出2列格式；如果元素是奇数个，需要在n=size/2?int时输出2列格式；需要换列，每行最多显示2列-->
                    </div><!--end 换列--><!--start 换列-->
                    <div class="col-md-6">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">称谓</label>
                                <div class="col-md-9">
                                    <input id="home1" name="home1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">姓名</label>
                                <div class="col-md-9">
                                    <input id="homename1" name="homename1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">政治面貌</label>
                                <div class="col-md-9">
                                    <input id="zhengzhimianmao1" name="zhengzhimianmao1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">出生年月</label>
                                <div class="col-md-9">
                                    <input id="homeborndate1" name="homeborndate1" onclick='SelectDate(this)' readonly='true' type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">文化程度</label>
                                <div class="col-md-9">
                                    <input id="homewenhua1" name="homewenhua1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">工作单位及担任职务</label>
                                <div class="col-md-9">
                                    <input id="homeworker1" name="homeworker1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">联系方式</label>
                                <div class="col-md-9">
                                    <input id="homelink1" name="homelink1" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>

                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">称谓2</label>
                                <div class="col-md-9">
                                    <input id="home2" name="home2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">姓名2</label>
                                <div class="col-md-9">
                                    <input id="homename2" name="homename2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">政治面貌2</label>
                                <div class="col-md-9">
                                    <input id="zhengzhimianmao2" name="zhengzhimianmao2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">出生年月2</label>
                                <div class="col-md-9">
                                    <input id="homeborndate2" name="homeborndate2" onclick='SelectDate(this)' readonly='true' type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">文化程度2</label>
                                <div class="col-md-9">
                                    <input id="homewenhua2" name="homewenhua2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">工作单位及担任职务2</label>
                                <div class="col-md-9">
                                    <input id="homeworker2" name="homeworker2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">联系方式2</label>
                                <div class="col-md-9">
                                    <input id="homelink2" name="homelink2" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>

                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">称谓3</label>
                                <div class="col-md-9">
                                    <input id="home3" name="home3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">姓名3</label>
                                <div class="col-md-9">
                                    <input id="homename3" name="homename3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">政治面貌3</label>
                                <div class="col-md-9">
                                    <input id="zhengzhimianmao3" name="zhengzhimianmao3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">出生年月3</label>
                                <div class="col-md-9">
                                    <input id="homeborndate3" name="homeborndate3" onclick='SelectDate(this)' readonly='true' type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">文化程度3</label>
                                <div class="col-md-9">
                                    <input id="homewenhua3" name="homewenhua3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">工作单位及担任职务3</label>
                                <div class="col-md-9">
                                    <input id="homeworker3" name="homeworker3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label col-md-3">联系方式3</label>
                                <div class="col-md-9">
                                    <input id="homelink3" name="homelink3" type="text" class="form-control" placeholder="" />
                                </div>
                            </div>
                        </div>

                    </div><!--end 换列-->
                </div><!--end row-->
            </div><!--end body-->

            <div class="modal-footer bg-info " id='buttonDiv'>
            </div>
        </div>
        <!--------------------------面板 end------------------------------------>

    </div>
</form>
</body>
</html>

<script src="<%=basePath%>js/bootstrap.min.js"></script>
<!--<script type="text/javascript" src="js/bootstrapValidator.js"></script>-->
<script src="<%=basePath%>js/bootstrap-paginator.min.js"></script>
<script src="<%=basePath%>/js/respond.js"></script>
<script src="<%=basePath%>/js/html5.js"></script>
<script src="<%=basePath%>js/toastr/toastr.js"></script>
<script src="<%=basePath%>js/bootbox.js"></script>
<script src="<%=basePath%>js/jquery.validate.js"></script>
<!-- <script src="<%=basePath%>js/additional-methods.min.js"></script> -->
<script src="<%=basePath%>js/my-jquery-curd.js"></script>
<script src="<%= basePath %>js/tableSortTool.js" ></script>
<script src="<%= basePath %>js/calendar.js" ></script>
<script type="text/javascript">
    //新增保存数据
    function add() {
        $("#addSaveButton").attr("disabled", true);
        var url = "<%=basePath%>t_user/saveT_user?time="+Math.random();
        var postData = $("#ffAdd").serializeArray();
        //alert(postData);
        $.post(url, postData, function (data) {
            //var data = $.parseJSON(data);
            if (data.result=="success") {
                //保存成功  1.关闭弹出层，
                showSuccessTips("恭喜保存成功!", "提示");
                history.goBack();
            }
            else {
                $("#addSaveButton").removeAttr("disabled");
                showErrorTips("保存数据失败!", "错误信息：");
                return false;
            }
        }).error(function () {
            $("#addSaveButton").removeAttr("disabled");
            showErrorTips("保存数据失败!", "错误信息：");
        });
    }

    //更新修改数据到后台
    function editDangan(){
        $("#editSaveButton").attr("disabled", true);
        var url = "<%=basePath%>t_user/updateT_userDangan?time="+Math.random();
        myEdit2(url);
    }

    function initBranch(){
        //初始化 上级菜单及id的select options；
        var purl = "<%=basePath%>t_branch/getAllT_branch?id=0&startIndex=0&pageSize=1000&time="+Math.random();
        $.getJSON(purl, function (data) {
            $.each(data.items, function(i,item){
                if(item.branchlevel=='0'){
                    //$("#branchid").append("<option value='"+item.id+"'>"+item.name+"</option>");
                }else if(item.branchlevel=='1'){
                    $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                }else if(item.branchlevel=='2'){
                    $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                }else{
                    $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                }
            });//end each
        });
    }

    //初始化页面及校验
    $().ready(function(){
        //1、初始化数据显示
        var name = "员工档案";
        var optype ='<%=request.getParameter("oplx")%>';
        var id='<%=request.getParameter("id")%>';
        if(optype=='add'){
            $("#ffAdd")[0].reset();/*重置表单*/
            var basePath="<i class='icon-plus'></i>&nbsp;";
            setHeader2("新增"+name, basePath);//设置addHeaderDiv标题文字及按钮
            setButtonDivAdd2();//设置adddiv的 操作按钮
            initBranch();
            initTime("createtime", "1");
        }else if(optype=='edit'){
            var purl = "<%=basePath%>t_branch/getAllT_branch?id=0&startIndex=0&pageSize=1000&time="+Math.random();
            $.getJSON(purl, function (data) {
                $.each(data.items, function(i,item){
                    if(item.branchlevel=='0'){
                        //$("#branchid").append("<option value='"+item.id+"'>"+item.name+"</option>");
                    }else if(item.branchlevel=='1'){
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }else if(item.branchlevel=='2'){
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }else{
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }
                });//end each
                var basePath="<i class='icon-pencil'></i>&nbsp;";
                setHeader2("修改"+name, basePath);//设置addHeaderDiv标题文字及按钮
                setButtonDivEdit2();//设置adddiv的 操作按钮
                var url = "<%=basePath%>t_user/getT_user?id="+id+"&time="+Math.random();
                $.getJSON(url, function (data) {//获取数据，并且自动填充form，自动代码待修改； @todo;
                    setValue(data);
                    $("#lastupdatetime").val(doZero($("#lastupdatetime").val()));
                });
            });
        }else if(optype=='view'){
            var purl = "<%=basePath%>t_branch/getAllT_branch?id=0&startIndex=0&pageSize=1000&time="+Math.random();
            $.getJSON(purl, function (data) {
                $.each(data.items, function(i,item){
                    if(item.branchlevel=='0'){
                        //$("#branchid").append("<option value='"+item.branchid+"'>"+item.name+"</option>");
                    }else if(item.branchlevel=='1'){
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }else if(item.branchlevel=='2'){
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }else{
                        $("#branchid").append("<option value='"+item.branchid+"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+item.name+"</option>");
                    }
                });//end each
                var basePath="<i class='icon-eye-open'></i>&nbsp;";//设置addHeaderDiv标题文字及按钮
                setHeader2("查看"+name, basePath);
                setButtonDivView2();//设置adddiv的 操作按钮
                var url = "<%=basePath%>t_user/getT_user?id="+id+"&time="+Math.random();
                $.getJSON(url, function (data) {//获取数据，并且自动填充form，自动代码待修改； @todo;
                    setValue(data);
                    $("#lastupdatetime").val(doZero($("#lastupdatetime").val()));
                });
                formReadOnly('ffAdd');//设置表单不可修改
            });
        }

        //2、校验脚本初始化，start check
        $("#ffAdd").validate({
            submitHandler:function(form){
                //alert($("#opType").val());
                if($("#opType").val()=="add"){
                    add();
                }else if($("#opType").val()=="edit"){
                    editDangan();
                }
            },
            rules: {
                id: {
                    //required: true,
                    digits: true,
                    //minlength: 1,
                    maxlength: 22
                },
                userid: {
                    required: true,
                    maxlength: 64
                },
                password: {
                    required: true,
                    maxlength: 64
                },
                username: {
                    required: true,
                    maxlength: 64
                },
                showname: {
                    //required: true,
                    maxlength: 64
                },
                status: {
                    required: true,
                    maxlength: 10
                },
                address: {
                    //required: true,
                    maxlength: 128
                },
                tel: {
                    //required: true,
                    maxlength: 32
                },
                phone: {
                    //required: true,
                    maxlength: 64
                },
                systemid: {
                    //required: true,
                    maxlength: 64
                },
                companyid: {
                    //required: true,
                    maxlength: 64
                },
                branchid: {
                    required: true,
                    maxlength: 64
                },
                deptid: {
                    //required: true,
                    maxlength: 64
                },
                termid: {
                    //required: true,
                    maxlength: 64
                },
                ismanager: {
                    //required: true,
                    maxlength: 1
                },
                issaler: {
                    //required: true,
                    maxlength: 1
                },
                createuserid: {
                    //required: true,
                    maxlength: 64
                },
                createtime: {
                    //required: true,
                    maxlength: 32
                },
                lastupdateuserid: {
                    //required: true,
                    maxlength: 64
                },
                lastupdatetime: {
                    //required: true,
                    maxlength: 30
                },
                memo: {
                    //required: true,
                    maxlength: 64
                },
                ext1: {
                    //required: true,
                    maxlength: 128
                },
                ext2: {
                    //required: true,
                    maxlength: 256
                },
                ext3: {
                    //required: true,
                    maxlength: 512
                }
            }, //end rules;
            messages: {
                id: {
                    //required: "<font color='red'>用户id不能为空！</font>",
                    digits: "<font color='red'>请输入数字，不能输入非数字字符！</font>",
                    //minlength: "<font color='red'>最少输入1位！</font>",
                    maxlength: "<font color='red'>用户id最大支持22位，输入的数据已经超过最大长度！</font>"
                },
                userid: {
                    required: "<font color='red'> 登录账号不能为空！</font>",
                    maxlength: "<font color='red'>登录账号最大支持32位,输入的数据已经超过最大长度！</font>"
                },
                password: {
                    required: "<font color='red'> 密码不能为空！默认密码：123456</font>",
                    maxlength: "<font color='red'>密码 最大支持32位,输入的数据已经超过最大长度！</font>"
                },
                username: {
                    required: "<font color='red'>用户名不能为空！</font>",
                    maxlength: "<font color='red'>用户名最大支持32位,输入的数据已经超过最大长度！</font>"
                },
                showname: {
                    maxlength: "<font color='red'>显示名称最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                status: {
                    required: "<font color='red'>状态不能为空！</font>",
                    maxlength: "<font color='red'>状态最大支持10位,输入的数据已经超过最大长度！</font>"
                },
                address: {
                    maxlength: "<font color='red'>地址最大支持128位,输入的数据已经超过最大长度！</font>"
                },
                tel: {
                    maxlength: "<font color='red'>固定电话最大支持32位,输入的数据已经超过最大长度！</font>"
                },
                phone: {
                    maxlength: "<font color='red'>手机最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                systemid: {
                    maxlength: "<font color='red'>系统id最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                companyid: {
                    maxlength: "<font color='red'>公司id最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                branchid: {
                    required: "<font color='red'>机构不能为空！</font>",
                    maxlength: "<font color='red'>机构id最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                deptid: {
                    maxlength: "<font color='red'>部门id最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                termid: {
                    maxlength: "<font color='red'>组id最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                ismanager: {
                    required: "<font color='red'>是否管理员不能为空！</font>",
                    maxlength: "<font color='red'>管理者最大支持1位,输入的数据已经超过最大长度！</font>"
                },
                issaler: {
                    maxlength: "<font color='red'>是否销售最大支持1位,输入的数据已经超过最大长度！</font>"
                },
                createuserid: {
                    maxlength: "<font color='red'>创建人最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                createtime: {
                    maxlength: "<font color='red'>创建时间最大支持32位,输入的数据已经超过最大长度！</font>"
                },
                lastupdateuserid: {
                    maxlength: "<font color='red'>更新人最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                lastupdatetime: {
                    maxlength: "<font color='red'>更新时间最大支持11位,输入的数据已经超过最大长度！</font>"
                },
                memo: {
                    maxlength: "<font color='red'>备注最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                ext1: {
                    maxlength: "<font color='red'>扩展1最大支持128位,输入的数据已经超过最大长度！</font>"
                },
                ext2: {
                    maxlength: "<font color='red'>扩展2最大支持256位,输入的数据已经超过最大长度！</font>"
                },
                ext3: {
                    maxlength: "<font color='red'>扩展3最大支持512位,输入的数据已经超过最大长度！</font>"
                }
            } //end message;
        }); //end validate;
    }) //end funciton read;
</script>
